<template>
	<!-- 左右布局的标题  更多箭头类型-->
	<view class="title-desc">
		<view class="title-desc-left" :style="{fontSize:fontSize,fontWeight:fontWeight}">{{titleLeft?titleLeft:''}}</view>
		<view class="title-desc-right" @click="$emit('click')">
			<view class="title-desc-more">{{titleRight?titleRight:''}}</view>
			<view>
				<slot></slot>
				<u-icon name="arrow-right" color="#707070" size="13" v-if="isIcon"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			titleLeft:String,
			titleRight:String,
			isIcon:{
				type:Boolean,
				default:true
			},
			fontSize:{
				type:String,
				default:'36rpx'
			},
			fontWeight:{
				type:String,
				default:'bold'
			}
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title-desc-left {
		// font-weight: bold;
		color: #333333;
	}
	
	.title-desc-more {
		font-weight: 400;
		font-size: 26rpx;
		color: #707070;
		margin-right: 10rpx;
	}
	
	.title-desc-right {
		display: flex;
		align-items: center;
	}
	
	.title-desc {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 30rpx;
	}
</style>